from graph import *

a = int(input("x="))
b = int(input("y="))
c = int(input("c="))

windowSize(500,500)

brushColor("Blue")
penColor("Blue")

if a <= 500 and a >= 0 and b <= 500 and b >= 0 and a+30*c >= 0 and a+30*c <= 500 and b+30*c >= 0 and b+30*c <= 500 and c > 0:
    polygon([(a, b), (a+10*c, b), (a+10*c, b+10*c), (a+20*c,b+10*c), (a+20*c, b+10*c), (a+20*c, b+20*c), (a+10*c, b+20*c), (a+10*c, b+30*c), (a,b+30*c), (a,b)])
elif c > 0:
    print("Размер фигуры превышает максимальный размер")
elif c <= 0:
    print("Коэфицент меньше либо равен нулю")

run()
